<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {$LOAD_STYLE.top|raw}
</head>
<body>
<form class="layui-form" action="">
    <div class="mainBox">
        <div class="main-container">
            
			<div class="layui-form-item">
				<label class="layui-form-label">分类名</label>
				<div class="layui-input-block">
				  <input type="text" name="name" value="{$model.name??''}" placeholder="请输入分类名" class="layui-input"  verify="must">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">排序</label>
				<div class="layui-input-block">
				  <input type="text" name="sort" value="{$model.sort??100}" placeholder="请输入排序" class="layui-input"  verify="must">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">状态</label>
				<div class="layui-input-block">
					<input type="checkbox" lay-skin="switch" value="status" lay-text="启用|禁用" {if $model.status??1 == 1} checked {/if}><input type="hidden" name="status" value="{$model.status??1}">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">小程序</label>
				<div class="layui-input-block">
					<input type="checkbox" lay-skin="switch" value="wx_isshow" lay-text="启用|禁用" {if $model.wx_isshow??1 == 1} checked {/if}><input type="hidden" name="wx_isshow" value="{$model.wx_isshow??1}">
				</div>
			</div>

        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save" verify="submit">
                <i class="layui-icon layui-icon-ok"></i>
                提交
            </button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
                重置
            </button>
        </div>
    </div>
</form>
<script>
	layui.use(['form', 'jquery', 'uploads','common','mycomm'], function () {
		let form = layui.form;
		let $ = layui.jquery;
		let common = layui.common;
		let mycomm = layui.mycomm;

		mycomm.editSubmit();
	})
</script>
{$LOAD_STYLE.bottom|raw}

</body>
</html>